#!/bin/bash
#echo srvrpowerctrl clearblock blip viacli | /usr/bin/nc 127.0.0.1 9090

if [ -d /run/lock ]; then
  BLOCKFILE=/run/lock/spc-block
else
  BLOCKFILE=/var/lock/spc-block
fi

rm --force $BLOCKFILE
if [ -f $BLOCKFILE ]; then
    echo "Cannot clear SrvrPowerCtrl block file: ${BLOCKFILE}!"
else
    echo "SrvrPowerCtrl Block file ${BLOCKFILE} cleared."
fi
